package com.zhiwei.jenkins.common.basics;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;

import java.io.Serializable;

/**
 * @Description: 请求实体基类
 * @Author: wyjun
 * @UpdateDate: 2019/11/14 9:49
 * @Version: 1.0
 */
public class Base implements Serializable {


    private static final long serialVersionUID = -5870706490740324066L;

    @Override
    public String toString() {
        return JSON.toJSONString(this, new SerializerFeature[]{
                SerializerFeature.WriteMapNullValue,
                SerializerFeature.WriteNullListAsEmpty,
                SerializerFeature.WriteNullStringAsEmpty,
				SerializerFeature.WriteNullNumberAsZero,
                SerializerFeature.WriteNullBooleanAsFalse,
                SerializerFeature.UseISO8601DateFormat});
    }
}
